<?php

use core\Menu;

/**
 * 模块信息
 */
$module_info = [
	'version' => '1.0.0',
	'title' => '点赞',
	'description' => '',
	'url' => '',
	'email' => '68103403@qq.com',
	'author' => 'sunkangchina'
];

/**
 * 获取用户点赞列表
 * @param int $uid 用户ID
 * @param string $type 类型
 * @return array
 */
function get_like_pager($uid, $type)
{
	$list = db_pager("like", "*", [
		'type' => $type,
		'user_id' => $uid,
		'status' => 1,
		'ORDER' => [
			'id' => 'DESC'
		]
	]);
	return $list;
}
